Ok, i found the problem and a solution. The thing is, that "Every Tick" changes like changing the text in a textbox every tick, make the tracking function freak out. So i wrote a little function, that pauses the game while draging the window.
I will make a tutorial soon on how to make a custom Window Frame with NW.js