Mostly, you will find it on the left or right side of the gate, just look for the red button, go near the button, and press it once the button icon starts flashing. For small doors, generally, you do not need to press the red button, just need to come near the door and press "E"or "Right shift" to open/close the door once the door icon starts flashing.