It honestly depends. If this is you, or a friend, I would suggest to see a doctor to be sure because they are the only ones that can make a professional diagnosis and provide the best advice.
My input would be: either a coping mechanism or hallucinations.
Either way, it's nothing to be ashamed of and the sooner you seek medical advice, the sooner you can get a legitimate answer.