Here are some suggestions of what I've done :
1. Get out of the house. Guest may be drunk or high (or both). Get yourself out of danger. It might mean going to a friend's home, or to a coffee shop, or to a "safe" room. or.....
2.invite a friend over.
3. Turn all the lights on and leave them on.
4.If you cannot leave, call the police. That's what they're there for.
5.Call someone - or pretend to be talking on the phone. They are less likely to approach you.
6.Think, think, think. In 20+ years of hosting guests, this has happened to me repeatedly. I developed PTSD!
Is it really worth it?
If you are going to host, engineer situations where you have a "significant other", friend, or pal-who-is-a-copper dropping by or phoning regularly.
Describe your home as clean and sober, party free, quiet, etc. as a deterrent.
No matter whatSleep with the door locked!