There’s been a bit of a trend these days to have the master bedroom ensuite and walk-in closet directly connected. As in, you have to go through one to get to another.
Here’s why that grinds my gears:
If you have the closet only accessible from the ensuite, if someone is in the bathroom dropping a doozy in the toity, you can’t even go in to grab a sweater…unless you have the kind of relationship where privacy while deucing isn’t a requirement.
I’m firmly in the camp of having a small landing/hallway that leads you to both rooms separately.
Like this:

This way you don’t have too many doors using up wall space in your bedroom, and the ensuite and walk-in closet are still close to each other for easy access.
It’s a win-win!