Another way of locking a door open by means of two magnets. You will need 2 magnets, snugly fitted in order for them to atract each other.