The ghosts in Danny Fenton are reflections. Their basically memories or unresolved emotions that still linger on and if extreme enough or somehow empowered they turn into a ghost. So they technically aren't people, but at the same time they have the memories and emotions of that dead person and it just becomes a ship of Theseus problem if they actually are that person or not.