a dog sits staring out through some barred windows 
a dog sicking his head out of a window between two bars
A dog leaning out of an open window with its head between safety bars.
A brown dog hanging out of a second story window.
A tan dog looks out an open, second story window.