Hi it refers to... nothing. After some verbs, an object is required. You hate someone. You hate a color. You hate a movie. You hate what others do. You hate the way Bob behaves. But you can't hate when... So it is idiomatic to say: I hate it when you look at her. I love it when you look at me.