Replace natvie window API in SetInputRegion()