my granfather used to do spiritism... he used to intentionally do what you did, but it is dangerous, while your soul is out of your body you can get stuck outside, or other soul could try to get in your body.
also once my sister started asking him stuff and he grabbed his hand, gave her a pencil and paper and he wrote "hola" (hello in spanish) backwards.