And what is its purpose here? A parable: to what is the matter comparable? To a king who had a daughter, good and pleasant and beautiful and perfect, and he married her to a king's son, and clothed her and crowned her and adorned her and gave her to him with great wealth. Is it possible for the king to dwell outside his house? You say no. Is it possible for him to sit with her all day continuously? You say no. How then? He set a window between him and her, and every time the daughter needs her father, or the father his daughter, they join together through the window. This is what is written: "All glorious is the king's daughter within; her clothing is of wrought gold" (Psalms 45:14).
The Two Shekhinahs
Sefer ha-Bahir 54
ומאי עבידתיה הכא, משל למה"ד למלך שהיתה לו בת טובה ונעימה ונאה ושלימה, והשיאה לבן מלך, והלבישה ועטרה וקשטה ונתנה לו בממון רב, אפשר לו למלך לישב חוץ מביתו, אמרת לא, אפשר לו לשבת כל היום תמיד עמה, אמרת לא, הא כיצד, שם חלון בינו לבינה וכל שעה שצריכה הבת לאביה או האב לבתו מתחברים יחד דרך החלון הה"ד (תהלים מ"ה יח) כל כבודה בת מלך פנימה ממשבצות זהב לבושה: