Windows in Tanakh seem to be linked to rescue and ruin. A quick concordance search yields evidence for this view, which I will elaborate on below. Note that not every reference supports this (the reference of King Solomon building windows in the Temple, and Ezekiel’s references to those windows, do not fit the pattern, and thus I have not included them below.)
Noah has a window on the Ark. He opens it in Genesis 8:6, sending out the raven, and ultimately the dove. The dove brings back an olive branch, showing the flood waters have receded, then doesn’t return at all, indicating she has found a place to rest. This is the first sign of rescue for Noah, offering him hope that one day he will emerge from the Ark and be able to build anew.
Due to famine, Isaac and Rebecca travel to the land of Gerar, which is in Philistine territory. Isaac has no concrete plans to reveal the relationship between him and Rebecca, but once he is asked about it by the local men, he answers that she is his sister. Abimelech, king of Gerar, happens to look out the window one day (Genesis 26:8) and sees Isaac sporting with his wife (a euphemism for intimacy). Abimelech confronts Isaac and tells him he is aware that Rebecca is his wife, not his sister. He also issues an edict to his people, telling them that anyone who lays a hand on Isaac or Rebecca will be put to death. In this way, Abimelech’s realization through glancing through a window leads to Isaac’s rescue (since Isaac was afraid he would lose his life on Rebecca’s account.)
In Joshua 2:15, the harlot Rahab lets Joshua and Caleb, Israelite spies, escape through letting them down the window via a rope. This is an obvious example of rescue.
In Joshua 2:18-19, Joshua and Caleb adjure Raheb to tie a red string by her window to indicate that her house should be spared once the Israelites attack. This string will save her life and the lives of everyone gathered with her, and thus is an obvious example of rescue.
In Deborah’s song, she depicts the mother of Sisra, the slain general, staring fretfully out her window (Judges 5:28). She wonders why her son is so long in coming, and why he has not yet arrived. Her ladies comfort her, and she too attempts to comfort herself, by suggesting that Sisra is merely delayed because he is dividing up the spoils. Of course, Sisra will never arrive, and thus Sisra’s mother will look forever outward, a portrait of ruin.
Michal, Saul’s daughter and David’s wife, saves the young hero’s life by lowering him out her window in I Samuel 19:12. This is an example of rescue.
Michal later watches David from the window with hate in her heart as he dances wildly before the Ark (II Samuel 6:16). This scene heralds the ruin of their marriage, as she rebukes him due to it and either never has a child with him at all or dies in childbirth.
Jehu comes to kill the wicked queen Jezebel. Hearing of his arrival, she puts on cosmetics (hoping to rescue herself by seducing him). Instead, he orders her thrown out the window, which leads to her ruin (II Kings 9:30 onward).
Elisha instructs King Joash to shoot arrows out of an open window, a sign of rescue for the Israelites as it indicates they will rout Aram completely (II Kings 13:17) .
Jeremiah 9:20 personifies death as climbing through our windows, a clear reference to ruin.
Joel 2:9 references thieves climbing through windows, also a reference to ruin.
In Proverbs 7:6 the speaker mentions looking out his window to observe the ill-fated seduction of a young man, which is a reference to ruin.
In Song of Songs 2:9 the beloved looking through the window has arguably come to rescue his love (although it ultimately doesn’t turn out that way).
Given that windows are portals, apertures through which we can see one another, allowing for connection or disconnection, the references to rescue and ruin are not that surprising. Windows allow us access, and access changes the storyline. Access can be positive- allowing us or our loved ones to escape and save ourselves- or negative- allowing us to be hurled to our deaths. The symbolic imagery thus meshes well with the literal use of a window.
I do think it’s interesting, though!
Below, enjoy the song that played in my head while I wrote this.
I too kept hearing "Waving through a Window" while reading this.