Add an API to set offset for drag window