Here, the speaker is using the window as a metaphor for freedom. He feels trapped, and when he looks out the window, he sees the outside world in all of its enormity. He uses the planets he sees as a connection to the leaves he has mentioned many times throughout the poem. He realizes that he is part of something much bigger than himself, and it frightens him.