Oops! This is only possible if you die! Yes, you read this right. It is because, the end is the only portal that connects you to the outer world, too when the dragon dies.