What is the history of the history of sexuality?

Why did critics used to say that one couldn’t write a history of sexuality? What is the history of the history of sexuality? What seems to be its current preoccupations?