Hamlet’s father is a demon seeking to damn his soul.
In his dialogue on demons, King James (S made Macbeth for him) claims vision = one devilish spirit.
As a Protestant himself, S would surely have Deut. 18:10–11 in mind. Hamlet suspects so in 2.2. Tragedy ensues Mt. 7:20