Na novela oficial é explicitamente declarado que ela entrou em uma eclusa de ar. Ela então usou a Força para fechar a porta externa e a tripulação então abriu a porta interna.
Even as her senses dimmed, her body rose toward the gaping maw of the shattered bridge. It slid through the wreckage and into the lock. Leia’s fingers brushed the viewport, and the outer hatch closed.
Then the inner door opened, flooding the narrow space with light and air and life. Faintly, as if from a great distance, she heard contradictory commands and agonized questions surrounding her. The Force was bright and spiky with fear.