Your guess is good as anybody's. Hopefully it will be explained next chapter but most likely something to do with one's chakra or some bullshit like that.
he did the same as what the rikudo sennin did.. chakra is able to transcend death and making use of his dimension transfer abilities was able to possess kakashi and give kakashi power