The entrance is located on the first floor of castle. Once Mario has collected ten Power Stars, sunlight will be shining down from the ceiling. If Mario stands in the sunlight and looks up, he will be transported to the level.
Although the sunlight will disappear once the ? Switch has been activated, Mario can still return to the level by standing in the same spot and looking up.