Have you tried the “Align World” function?
Perhaps it does what you are asking for!
Why? I forgot to add that I need to copy-paste UVs within the same object, just different UV layers. Shouldn’t be that difficult to implement I think.
Thank you for sharing