That would make for one angry ghost, to transition into another gender only to transition back into their original gender through death. Then they would be searching for a paranormal sex change doctor that can cut off their ghost penis and replace it with ghost vagina.