Di Caprio never died in Titanic, The end scene of Titanic is of him going underwater. The beginning scene of Inception is him waking up on a beach. Its like a movie within a movie.