Implement Focus by drawing a rectangle

Draw a rectangle with the left mouse button to fous.
Right click to unfocus.