How to command printhead to the front/glass door

It is possible. You will need to slightly modify the “Pause at layer” to add a homing cycle to bring the nozzle forward. Details can be found here.