Well spray foam definitely seals out the moisture fills all the cracks since its almost waterproof compared to regular glass which absorbs moisture.. Rodents can chew through both but not as easy in foam..Rodents love to nest in regular glass..Go with closed cell foam if you decide!..Theres stone wool also but closed cell foam seems better..
Only thing if you decide foam you may want to run some metal flex conduit in case a line needs to be added or replaced but slim chance if all was wired correctly etc!! Foam is also a pain if you want to add or change anything since it basically glues everything together lol
Awesome your cruising along!!