when looking at a window, you see two reflected images slightly displaced from eachother. Why/

Is it because glass is more dense.

No. One reflection is from the front side of the glass and the second reflection is from the back side of the glass.

When you look at a window, you might observe two reflected images that are slightly displaced from each other. This phenomenon, known as double reflection or ghosting, occurs due to the multiple surfaces present in the glass.

The reason behind this displacement is not the density of the glass but the fact that most windows consist of two or more panes of glass separated by a small gap, which is typically filled with air or gas. Each of these glass surfaces can reflect a portion of the incoming light, resulting in the formation of multiple reflections.

When light hits the first surface of the glass, a portion of it is reflected back. Some of this reflected light then strikes the second surface of the glass and undergoes another reflection. These two reflected beams travel back towards your eyes, resulting in two slightly displaced images.

The displacement occurs because the light beam traveling the shorter path (hitting the first glass surface) takes less time to reach your eyes compared to the beam that goes through both surfaces (hitting the second glass surface). This time delay leads to a small displacement between the two reflected images.

So, the displacement of the two reflected images in a window is a result of multiple reflections caused by the different surfaces of the glass, rather than the density of the glass.