How to use UWidgetBlueprintLibrary::DetectDragIfPressed?

Is this code right?