Are ghost real? Doesn't the whole concept of dead soul haunting this world contradicts barzakh?

Soul do not die. It returns to Allah.
However, ghosts are not real.