You have to go through the temple, which unlocks another route through the main area. As you go along the alternate, higher route, you'll pass through multiple roofs, including this one. Once you get to a roof, it unlocks the path to go through at any time.
Oh, and the roofs lead onto leaves...