Expanding foam insulation around windows and doors