Why are they dots and not squares, triangles, or some other shape?
Not-much- they just have to be closer together than the wavelength of the microwaves.
Generally the door has a metal grid, with holes in it smaller than the microwaves. This stops the radiation getting through but allows the much smaller wavelength visible light to pass through.
Either you are mis-understanding what you are seeing, ie the white dots are really holes in a dark mesh, or the maker has used a pattern of metal dots instead of a mesh.