Given an array `nums` and a window size `k`, return the maximum of each contiguous window of size k as the window slides from left to right.