Every morning before I open my eyes I see shapes of windows, sometimes appear as they should, other times distorted, fragmented, sloping and elongated

I can never quite remember how to replicate this when my eyes open

They are like shadows created by light in my eyes.