Tap and Hold detection on widgets with touch inputs

I am trying to make a widget that brings up a menu when I tap on it, but lets me drag the widget out when I hold down touch long enough. I tried using a DetectDragIfPressed node but it always works for touch inputs, how can I get around this?