the difference between the body and mind is the same as the difference between hardware and software. the ghosts you have seen are the memories and personalities of dead people that have managed to "upload" themselves in your mind. that's what it means when it is said that someone lives within you after they're dead.
Canada