I think the microwave is designed so that the radiation resonates in a cavity. Once you open the cavity, the waves spread in all directions and the energy drops off very quickly.
They are contained by front door, which has a metal lattice to create a Faraday cage. Of course they drop off in open air, but leaking microwaves are not safe.