According to Hindu beliefs following the death of anyone, his/her souls reside from the Pitriloka – the realm amongst heaven and earth, governed by Yama “The Lord of Demise”. The a few generations of ancestors continue to be inside the Pitriloka and visit the earth all through Pitri Paksha https://sunilkeshari.com/pishach-mochan-temple-varanasi/