Well... I'm an old man.

And, if you happen to know anything about old men, you know we have to pee... a lot... at least I do!

I typically have to get up at least 2 or 3 times a night to go. Sometimes I can't get back to sleep. And yes it can be annoying!
What I do is to get up & do walking meditation, sometimes for as much as an hour or more. We live in a one-level townhome. So I walk from the front to the back around-&-around through our dark & quiet unit. I notice the feeling as each foot touches the floor. I hear the sounds of the city in the distance. Thoughts come-&-go. I let them arise-&-fade at their own pace.
If a difficult thought comes up, I breathe into it & smile to it. I may even place a hand over my heart as a sign of compassion for it. (As the 11th century Tibetan Buddhist yogini Machig Labdrön said: "In other traditions demons are expelled externally. But in my tradition demons are accepted with compassion.") I enjoy this so much that if I haven't had occasion to do it for a while, I miss it.

Once I do go back to bed I'm able to go back to sleep.