MakeMKV has a button on the top for ejecting/opening your optical drive.
Clicking on this button opens the drive (if it's closed), period.
I would find it useful if the meaning of the button were changed to
"toggle the drive".
If the drive is closed, clicking on the button would open the drive.
If the drive is open, clicking on the button would close the drive.