To prevent that you drill a few holes in the hinge edge of the door. then hammer a few nails into the frame so the nails extend into the holes about 3/8". Remove the hinge pins and the door is still secure.
In “Kindergarten Cop” he was undercover playing a teacher. He had a headache and one of the kids said “Maybe it’s a tumor”? Arnold replied, “It’s not a tuma”!
Or deep fry!