Can i promt an input dialog, so that I can specify the offset?
As far as I know, not directly from g-code.
You may be able to use a M100 command and call with that one a shell script.
Or you change the complete remap code to be a python remap and call the popup with python.
I have never done that, so I am not the best person to ask:( .