Airplane windows have 3 pieces of glass: the outer one keeps the pressure at bay, the inner one deals with damage from inside, and the middle one, in which the hole is made, regulates the airflow. The aperture helps balance the pressure difference and prevents moisture from condensing between the glass panels.