Stockton deliberately withholds the ending. The doors remain closed. But 140+ years of readers and writers have proposed resolutions:
Princess chooses life for her lover, accepting his marriage to another. Bittersweet sacrifice. She loves him more than she loves having him.
She cannot bear him with another; death is preferable. Tragic, possessive. "If I can't have him, no one can."
The story is the test: Your choice reveals your view of human nature.
If Stockton gave an ending, the story would become a parable with a moral. By withholding, it becomes a mirror. The ambiguity is the point — and the only ending that lasts.