A dog by a window watching out it.
In daylight hours, a dog looks outside through a window.
The dog is indoors staring out the window.
a close up of a dog looking out of a window 
a white dog is looking out of a window