Foam expansion is a form of sealant use for coldstore building, home windows, fixing doors, and closing of any gabs or unwanted holes, its magic work is that its expands to cover the area needed to be close.
You can then later cut of excess part off.