Dangers of spray foam in body panels?

Epoxy some screen material over the gaps to keep crap out. Water shouldn't be an issue if the drain holes are clear and clean.