I wonder if that Cat has a home, or whether hes a stray looking for a place where he will find a Furr Ever Home?
I dont think that theres anyhing that you can put in the window to scare him off, as Cats react to scent far more than sight.
I hope he has a home.