According to World History Encyclopedia, Mesoamerican cultures like Maya & Aztec believed that dogs guarded the bridge between the world of the living and the dead.
Dogs and Their Amplified Senses
If ghosts were real, then dog would be the first to know it. Senses beyond stronger than human’s, I wonder what lies outside our sensing ability that dogs can detect.
The Sixth Sense
Together with 5 senses dogs also have a 6th sense, that can be called “the gut feeling or an intuition”. This is the same feeling we humans too get when something doesn’t feel right.
Can dogs see ghosts
Animal behaviourists believe there is a lot they don't know about dogs & their strange behaviour. Also, there is documents to support idea that dogs can sense paranormal activities
Conclusion
Answer to the question, can dogs see ghosts is quite disappointing from a scientific point of view, but it's a lot more fun to imagine that your dog is sensing something paranormal.
Click on the link below to read complete article to know more in detail about can dogs see ghosts.