Sims.Mixei.Ru has an article about Ghost and the interactions between them, cats and dogs.

Your pet ghost scared enough to call the command “Drive the gravestone in” in the name of your pet. Let me remind you, this feature is only available from pets trait “scratch-cat.”

Once the command is given, your pet will go directly to a ghost and will do its best to intimidate him. Females begin to sizzle, dog, in turn – to growl.