Meaning: This sentence is saying that the raindrops were falling on the windowpane in a happy and cheerful way.
Choice of Words: The word "danced" is used in a figurative sense to describe the way the raindrops move and fall on the windowpane. "Merrily" means happily and cheerfully.