Well, as far as creating a non-realistic or "heightened" world as the answer, "The Producers" did that, but for many that movie didn't work either.
I think "energy" is definitely part of it. And that doesn't mean fast-paced, necessarily, although it helps. You can have low-key moments, but you can't drop the energy level, or you'll have trouble bringing it back up again to the point were a song starts. It will either "jolt" terribly into it, or feel like you're suddenly watching a different movie.
But I think the real answer is that you need ALL the right elements in place...
Writing---You can't have too many ballads in a film musical, or it kills the pacing. Many Broadway musicals that are ballad-heavy would need to have many of them cut. You also have to move the story along visually WHILE the song is going on. The "stop and sing" approach might work once in a film, but more than that, and you're dragging.
Direction---knowing where to position the camera during the solos and the big dance numbers is critical. Keeping the energy level up and the performances focused is critical.
Casting---You need people who can really do it. No faking it, or it shows. I don't mean that you couldn't have someone dubbed in a film anymore... but they would have to convince us that what they're doing is real and immediate. No bad lip-syncing (even if it's their own pre-recorded track), no awkward, unsure performances...
So many things have to fall into place for any movie to succeed, but for a musical (in this day and age), it's nothing short of a miracle.
"Jaws is the Citizen Kane of movies."
blocked: logan2, Diamonds3, Hamilton22