If you have a traumatic event and are near death it is likely that you will be under the influence of medical procedures- drugs, anaethetics or perhaps electronics and the euphoric effects of extreme pain. An 'out of body' experience would not be uncommon in these circumstances I would think. It is not 'spiritual' however, but induced by the agents above, though I understand how a religious person could explain it as a mystic experience.