This is a good article why one should never do it. The article illustrates a case of a 17 year old whose dog was distracted by a person petting the dog. The dog is suppose to warn the woman about seizures. The petter distracted the dog, woman had seizure with little notice and injured herself.
I know people here wouldn’t but children may.