Ford F-250 Window Adjustment
Looking down inside the door, here we see the rear track for the window. That S shaped bracket is the track mounting bracket, and you can see the bolt in it. Adjust the track towards the front of the truck so that the track is tighter against the window.
Gently raise and lower the window several times to make sure that the window won't fall out, and is not too tight or too loose.