Whether there are such things as "ghosts" is still an open question, though it seems to have more evidence than the existance of God. If there are such things they could have a reasonable physical or metaphysical explanation.
A fairly widespread metaphysical explanation is that a person has several non-physical support structures underlying the physical body. When the body dies these support structures come unassembled and should dissipate or transition to a different phase of existance. Under some circumstances parts of this support structure may remain intact and hang around.
God not required.