Push yellow panel to open, pull it to close the door.
The yellow panel is fixed to yellow slider that moves along blue runway.
The yellow slider has a pin that moves along a slot of stationary plate (in transparent brown).
At left end of the yellow panel stroke the interaction between yellow rack and the stationary grey gear makes the blue runway, to which blue glass panel is fixed, turn 90 deg.
Green line is the trajectory of the yellow pin center.
For easy motion of the mechanism make the gear as large as possible.