numbers: List of integers representing the input array. window_size: Size of the sliding window (must be positive).