In vanilla, when standing in a nether portal your cannot open gui's, for example you can't use your inventory or chat, often leading to nether portals traps on servers. Maybe add a tweak/yeet that makes it possible to use gui's in a nether portal?
The mod Some Ordinary Tweaks has that, but the problem is that it was not updated yet (all the other tweaks the mod has would be very nice to have in tweakeroo). Maybe look in their source code idk.
Thanks, Erri4.