Did the witch of Endor really summon Samuel from the dead? What actually happened in 1 Samuel 28:7-20? Why would God allow Samuel to be summoned by a witch?

Links:

Did the witch of Endor really summon Samuel from the dead (1 Samuel 28:7-20)? - https://www.gotquestions.org/witch-of-endor.html

What does the Bible say about witchcraft / witches? - https://www.gotquestions.org/Bible-witchcraft.html

What does the Bible say about praying to the dead? - https://www.gotquestions.org/praying-to-the-dead.html