"Spirits, souls. My people used to call them Borhyas. Whatever term you want to use, we're it."
"But my uniform, my VISOR. Are you saying I'm some blind ghost with clothes?"
"I don't have all the answers. I've never been dead before."
In 2268, after James T. Kirk suggested that the Kalandan outpost was a ghost planet, Doctor Leonard McCoy stated that the mysterious woman they had encountered there almost made a ghost out of Hikaru Sulu. (TOS: "That Which Survives")
In 2367, before it was discovered what the two-dimensional beings really were, Commander William T. Riker referred to them as ghosts and said he didn't want to be tailed by them all the way to T'lli Beta. (TNG: "The Loss")
For a moment, the Ux-Mal criminals on Mab-Bu VI appeared to the crew of the Enterprise as ghosts or spirits, that took control over the body of the living. Worf stated that the Klingon name for such a spirit was "jat'yIn". (TNG: "Power Play")
Some lifeforms are so alien that they can appear ghost-like. Anaphasic lifeforms are long-lived entities that can only appear corporeal when attached to a particular object, or a person with an unusual biochemistry. The females of the Howard family were host to an anaphasic lifeform, who posed as the ghost of a 17th century Scotsman named Ronin, for centuries. (TNG: "Sub Rosa")
Many species believed that part of a person lives on after death; examples include the Bajoran pagh or the Ocampa comra. These beliefs were often found in religion. (DS9: "Emissary", "In the Hands of the Prophets"; VOY: "Emanations") Deanna Troi once sensed that the Devidians, in the form the crew of the Enterprise-D found them, had died in terror and she sensed an echo of life, though they still required sustenance thereafter. (TNG: "Time's Arrow", "Time's Arrow, Part II")
While searching for information about the creators of the aphasia virus, Kira Nerys believed she was searching for ghosts when she learned that one of the virus' creators, Dekon Elig, had died on stardate 39355. (DS9: "Babel")
In many legends, ghosts have the ability to appear and disappear at will. In 1944 of an alternate timeline created by the Temporal Cold War going hot, Jonathan Archer and Alicia Travers, about to be captured by a Nazi-Na'kuhl alliance, were brought aboard Enterprise via transporter, a technology almost incomprehensible to Humans of that time. After Alicia's return to Earth, Carmine told her of a rumor he had heard – that, after being cornered by the enemy, she and Archer had vanished into thin air, "like ghosts." (ENT: "Storm Front, Part II")
Commander Sisko said, ironically, that Rao Vantika must have had an accomplice who did the system breakdown because two bodies found on the Reyab were in the station's morgue, and he ruled out the possibility that Vantika's ghost was wandering through Deep Space 9's halls. (DS9: "The Passenger")