My microwave is the other way around, the door can always be opened. And if you have the timer set, it will stay lit up and spinning, even with the door open.
So OP's method wouldn't work for me. I got scared the first time, but I think the magnetron turns off when the door is opened... but I haven't tried testing that theory.