The metal screen in a microwave oven's window bounces back the microwaves, the invisible waves that heat your food.
Those waves measure about 12 centimeters from one peak to the next, called their wavelength. A wave can't squeeze through a hole much narrower than its wavelength, and the screen's holes are tiny.
Light waves are far shorter, so they slip through, and you can still see your food.