Interesting that Sleepy talked about the protective position!
I sleep on whatever side is furthest away from the door for this reason

I prefer to be as far away from the door as possible.
Currently I sleep on the right side of the bed (but only because it's not nearest the door). Whenever we go to a hotel where the door is reversed, I sleep on the left