As per Hindu beliefs after the Demise of someone, his/her souls reside inside the Pitriloka – the realm in between heaven and earth, ruled by Yama “The Lord of Death”. The 3 generations of ancestors stay in the Pitriloka and take a look at the earth through Pitri Paksha https://sunilkeshari.com/pishach-mochan-temple-varanasi/