In the course of diffusion down into the n-type layer there is also lateral diffusion of the p-type region into areas beneath the dielectric mask.
an anti-reflection coating is applied over the window to improve light output efficiency.