Hi,
Perhaps I could add a little more detail.
'To head ... somewhere' has the ides of 'go in that direction'.
'To drop by ... a place' is to visit it casually, eg without a prior arrangement.
Hi, I was heading over to the hospital, and I was passing your house, so I decided to drop by for a few minutes.
Best wishes, Clive