OMG.
The girl thought she had a gay friend.
The gay friend secretly loved the girl.
The girl loves this guy who's fiancee died a while ago.
The fiancee is coming back to life in ghost form.
The guy likes the girl.
The gay guy isn't gay, he's straight.
The un-gay-now-straight-guy loves the girl.