Moving the hotspot on draggable area through commands or code

Hey, I'm trying my hand at the Action-based UI, and one thing I noticed...
If a setting starts in the middle, for example, the example has the code to crop an image to fit it, but if the draggable hotspot is on an end of the draggable area I'll have to find where it is first before I can change the setting.
Is there a way to move the hotspot itself inside the draggable area? With either commands or code?

Original thread: https://forums.rpgmakerweb.com/threads/moving-the-hotspot-on-draggable-area-through-commands-or-code.107500/