That s because in essence microwave ovens are like convenient faraday cages from which microwaves cannot escape.
Microwave hole inside glass door.
The moisture leaves the microwave compact oven through ventilation ducts including the door.
The holes are absolutely not a microwave leakage problem because they are only in the plastic inner skin and have not affected the metal screen at all.
The stains are caused by grease particles reacting with the cooling air.
If that is damaged then you have a problem.
Since the holes are small compared to the wavelength of the microwaves little radiation can leak out.
Microwave ovens operating at 2450 mhz emit radiation with a wavelength of about 12 centimeters and the holes in the mesh of the door are typically on the order of 1 2 millimeters in diameter.
Aluminum foil being metallic would help in restoring the sanctity of this cage to some extent.
Condensation water moisture may gather inside the oven inside the oven door and between the glass panels.
This means that stains and condensation can form between the two glass panels in the door.
What really protects you is the metal mesh or screen that is behind the glass.
If there is a small crack in the glass itself then you can still use your microwave.
The first thing you can do is cover this hole with aluminum foil.