Bluedes: are you familiar with Kabbalah, there are certain rituals that could temporarily "grab" a living soul of the person and bind it in a crystal, or put it inside a bottle.
The operation goes like this: The soul of the person is called by the power of the divine names... this is set of latin evocation separating the soul to the physical self.... the person will then feel nauseated or will lose consciousness. Next is to direct the soul to the object where you want it to reside temporarily, this is a prepared vessel and there is a seal of binding in the item to prevent the soul from going back to the physical body. Since the persons body, soul and spirit are intertwined, the soul will seek the vessel it is in. The seal will prevent it from going back. The soul can be questioned, or coerced and influenced. After the desired thing is done already, one can release the seal and the soul will go back to its original vessel...
I say it is tru because my teacher in Kabbalah knows this, I have the evocation and the entire ritual in one of my notebooks.
The reason you see these things in the cartoons or the anime is because it has real-life basis. Mysticism and magick in the anime is an exaggerated version of the real thing.