Drag and drop not working correctly after updating to 4.18

No, that’s not the reason. The drag offset variable used in the tutorial is a custom property only used for functionality after the widget has been dropped. This variable doesn’t affect the internal drag mechanics in any way.
Another odd thing I noticed, is that the dragged widget can move outside the viewport, as shown in the picture. Not sure if it’s the intended behavior but I hope it helps.
Note that the cursor is not visible on the screenshot, but it’s inside the game viewport.

227123-outside-viewport.png