filter out polygons that don't overlap window
small text change
determining if two polygons overlap is not trivial, but we can cheat by getting the bounding rects of two polygons and saying
they are 'close' if their rects overlap, which is easy to determine.