Ghost cells form through a process of necrosis or apoptosis where the cell undergoes degradation but retains its basic structural outline. During this process, the cell loses its nucleus and cytoplasmic contents, leaving behind a pale, shadowy form. In some cases, the cell may undergo calcification, adding to its ghost-like appearance.