He couldn't have drunk the mandrake potion because he's a ghost and I can't think of any other way.
I would've assumed that they just sprayed it on him
What do you think?