Many sliding doors can be popped off the frame, even when locked. Prevent this by placing a strong steel bar or two-by-four in the back groove, which prevents the door from sliding along the groove and opening.

Place either an auxiliary lock or pin in the door frame. You can do the same with windows.