Aah, inside vs outside, that explains it.
Looks like all it cares about is whether the player counts as inside or outside, so if you make a window and both sides of it count as inside you can open from either direction. Same with the kinds of doors that are locked from one direction, to break into a house you could build a roof in front of the door, which would unlock it.
If we make shelter construction a major part of the game we’ll need to rework how this works, as it is the assumptions generally work with finished houses, but you get nonsensical results like this with partially constructed houses.