Watch the scene again. Poe spots her floating back so they run to the door.
I did, here's what I saw:
Poe (in a part of the ship that's distant from where Leia arrives) looks out a window and sees Leia, and starts running. They then cut to Leia drifting into the debris-strewn room, and then arrive at door/window. At that moment when she touches the window, Poe is STILL running down the hallway in the distance (maybe 50 feet away).
The problem: He
doesn't have eyes on Leia when the "air-lock" door closes, so who closes it (i.e. without crushing her)?
And to be very clear, Star Wars is NOT science fiction, a fact RJ seems to have overlooked. While there was mention of gravity dampers and supernovas and other sci-fi-like terms in the OT, we never saw people interact with zero gravity, there was no silence in space, no pressure/temperature issues with entering what appears to be no atmosphere inside the space slug etc etc. The idea of all of this scene: a human in zero-g, freezing in space, the debris floating in the room, the need for "air locks" - none of this had any precedent in the OT.
So what I'm saying is not only is this scene pure cheese from a dramatic perspective (laughable to even many who liked TLJ,) and makes little sense from a logic/geography perspective, the main issue is that it goes against what was set up in the OT - because the OT isn't sci-fi, even if the trappings of sci-fi loosely form its backdrop.
That's how airlocks work. You need a pair of each door. One side facing the vacuum, one side facing the pressurized cabin. If you only had one set of doors, then opening that would expose everything else into vacuum. You have to close one side first.
You are confusing
airlocks - which are rooms generally designed to facilitate
human movement between pressurized and non-pressurized environments - with
bulkhead doors common throughout ships and submarines (and I suppose spaceships in sci-fi shows,) which are designed to
seal off a breached area from the rest of the vessel in an emergency.
The doors seen in those corridors we are discussing - are bulkhead doors. Airlocks would only exist where people would enter/exit space.
There would be no reason whatsoever for an airlock to exist in the location where Leia touches the window because it is simply a short hallway leading from a main corridor into a large command center room, not a place where people enter/exit space.