Put an NRA sticker on your window. The FBI did a study of violent offenders back in the 1990s, murderers and rapists, what they feared more than being arrested or shot by police was meeting an armed victim. Something like 90% said they had passed on a potential victim because they thought they might be armed.
If you got sliding windows put a stick just long enough for the window to be open just a bit. And if you have a bit more money you can afford locked for the windows that keep em open just enough but wont admit anyone.
I have a very nice. 45 that leaves rather big holes at close range. I have s 9mm for distance shots. Less recoil and gives them something to think about. Leave and bleed out or let the big one remove a chunk of your ribcage.
I probably wouldn't shoot to kill with the first shot but the next 8 would score 10 :)