When I was a kid we had a cat who declared herself the queen of the household. Aside from the usual hiding out under beds when outside her favourite spot was under the deck near the main door.
This meant we constantly had to escort a wimpering dog in and out of the house. It knew from experience if a human was not there the cat would dart out from the deck and attack. Of course the dog outmassed the cat by at least a magnitude so any real fight would have been really short.