Yogi does something like this when it's wet out. He'll poke his little nose out and if there is even the remotest chance that the ground is wet he'll hike his little leg and pee right there in the door jamb.

I tell him to quite being such a little
Princess and get his bum out there a pee like a big boy.

I've taken to placing him outside on those days and don't give him the chance to decide on doing his business in inappropriate places.