Since, you are asking for Polygon. You do not have to use overlay object. You can directly use Polygon object to draw shapes as well as listen the polygon complete option.
Following is the demo which will enable you to draw polygon shape and will produce a infoWindow at the middle of the polygon shape which you have drawn.
Working Demo.