8 Pack Adjustable Sliding Door Security Bar Glass Door Lock, 15.7-27.6 Inch

Screw the inner swivel rod to the desired length, 3-5cm longer than the actual shortest distance on both sides of the object, tilt the rod slightly between the sides of the object so that the rod is gently parallel to the ground, and finally supported by the spring.

eBay