A small white dog hanging out of a second story window.
Small white dog peering out of blue sashed window.
a small white dog pokes his head out the window 
A white fluffy dog looks out of a window with shutters.
The window is left open for the dog to look out of. 