Um, unless it is a polycarbonate or safety glass window, a bar won't be much help. It is an illusion that is easily penetrated. An alarm attached to the glass would be much better.
_________________________
The ultimate result of shielding men from the effects of folly is to fill the world with fools.
-- Herbert Spencer, English Philosopher (1820-1903)