It’s worth mentioning Palpatine had control of this mask at one point, and may have even learned the method in which to do something similar in the event of his death.
With that said, it is possible for Sith to inject their essence into physical objects.
One Sith, Lord Momin, had his essence stored within a mask that was capable of influencing living humans to the Dark Side.
If they put on the mask, he’d actually be able to control their actions.