If you happen to read Carl Jung's Red Book, then this will explain everything. Jane's mind created this world of hallucinations, self-induced hallucinations. We can see the character reading Carl Jung's book in select episodes. This is a story of person's journey to the unconscious, where he (the mentalist) creates a world of "what ifs" and begins to formulate his own solution of the struggles faced within the imaginary world.