It is an endearing term for friends, strangers, or inanimate objects.
It comes from the root words cute and poot(fart).
So this can be interpreted as calling someone or something a “cute fart” (endearingly)
They are so cutesy pootsie.
I love how cutesy pootsie you are.