Strictly speaking, it goes wherever you need it to go.
It may be 'anchored' on the guitar top, or a string, but generally, it'll be hovering like the rest, in suspension over the strings, ready to be used.
There's nothing wrong with it being used - not all the time - but whenever needed. Some players don't use it, some sites say don't use it, others use it all the time, I use it for some patterns, not others.
Resting the underside of the forearm either on the guitar top or behind the bridge, puts all digits in a ready-to-play position, and that includes the pinky. If you decide it's never going to come out to play,that's up to you. At which point, it's also up to you to decide where it gets stored...