If you believe that is a serious concern in your area, get bars for your windows. There is no shame in it, I've lived in numerous buildings that had barred windows.
However I suspect that most people don't sleep on the ground floor (either in a multi-level house, or in an apartment building) so for them this should be less of a concern.