In this script, I tried to make a better Pan 'n' Zoom GUI like known from Sony Vegas or Camtasia Studio for Adobe Premiere Pro.
One day after I finished this code, I found out by myself that Premiere Pro already comes with an out of the box solution like this. 🙃
The top secret option you have to apply is the little inconspicuous "Zoom" checkbox of the "Crop" Effect: