How would i do this Door mechanic

So i want this door


To not be pushed by the player and also that can swing but not be pushed and anchored, but later it swings caused by a VectorFoce, sorry bad english

Basically what i can do to get this??, should i use springs or is there any other better method?