How can I make a death-return mechanic for my game?

yep, logic wise there is no difference. its just a save/load/checkpoint system.

you’d handle it OnDeath, usually you may spawn a widget here but instead you just load directly.