If these gaps are deep, expanding foam ... seal a window using plastic shrink-wrap, follow these steps: Clean the window. Apply strips of double-stick tape on all four sides of the window frame.