You're likely referring to
"The Door Closed Twice", a poem by
Emily Dickinson. However, there is no poem by Emily Dickinson with that exact title. It's possible you're remembering a misremembered title or a poem with a similar theme.
It's crucial to have the correct title or a few lines of the poem to accurately understand its meaning.
If you can recall any details of the poem you're looking for, please share them, and I'll do my best to help you find it.