a cat is standing behind a bar in a window
A cat that is sitting behind a gate.
There is a cat sitting on a window perch.
a cat sitting between a window and security bar
this is a cat sitting in a window