This phrase contains a metaphor. Here, the raindrops are compared to the ghosts that tap on her window. The sound seems to haunt her as it reminds her of her past lovers. Like ghosts, her past lovers have no existence in the present moment but still, their traces are there in her heart.