These links didn't help me or I used them the wrong way. Can you please send the file utils.js ? Or another file where you succeeded.
https://support.esri.com/en/technical-article/000015175
https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/move-the-popup-window-in-wab/m...