Combination window guard/gate