Step 1: Getting Started
Sometimes needed: cardboard, paint.
Plug the glue gun in so it can heat up while you think.
Closed cell foam is saved from appliance or equipment boxes. LDPE is what you want. It's easy to glue in place, and very easy to cut. If you don't have a single piece of foam big enough to fill a particular area, you can glue smaller pieces up to fit.