Cut the foam to the size of the door so that the door handle remains accessible and the foam does not drag on the floor. For thin insulation, first stick double-sided bitumen foil and then composite foam - ideally on both sides. The thicker the composite panels, the better the insulation.
For greater sound insulation, a 3-layer structure is recommended: composite foam panel - bitumen foil - composite foam panel. Pay attention to the door opening. Attach the first panel with a strong mounting adhesive.
Disadvantage: Adhesive residue remains after disassembly.