Wikipedia has an article on this technology: Night vision device.
No-one knows why such devices should be any more useful in spotting ghosts than they would goblins, invisible dragons, or a cloaked Klingon Bird of Prey.