Here, I made a small example how to use the helper class:
https://playcanvas.com/editor/scene/1054550
There appears to be a bug, preventing the draggable to work under root screen, so I nested it under another screen (can be any screen element). I will make a github issue about it.
Edit: