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