You are in a play, playing a role, and believing that the role and the play are both real. Why would you believe such nonsense? Because “your mind” is the playwright, the author of every scene.
Once you realize that the world is your own projection, you are free of it. You need not free yourself of a world that does not exist, except in your own imagination. However is the picture, beautiful or ugly, you are painting it and you are not bound by it. Realize that there is nobody to force it on you, that it is due to the habit of taking the imaginary to be real. See the imaginary [dream] as imaginary [dream] and be free of fear.