Add background API

Fix drag when maximized