Add support for positioning dock on the screen