It might not do much to deter burglars but it helps prevent the burglars from seeing inside your house so easy.
I also leave a table lamp on near a window at night.
I like to have my front porch lit up and my back yard lit up where I can see what is going on out there at night.