Play It Safe Around Windows and Doors Sealing around windows and doors is one of the most common uses for expanding foam. But it can actually push the jamb inward, making them impossible to open.