Weird experiences just before sleep are called Hypnagogia. I experience some, not quite what you described, but equally odd.
They are benign if you are Dedicated, as Henu pointed out. They are results of a trance state. Do explore them, just make sure to stay grounded.