Add the following script to the UI settings as shown in the image. Update the script as needed for any future changes. This will enable drag and resize functionality for popups.