This is very similar to the simple map editor. Please read those docs.
Only difference is that when you select 'Pick draw type' you are limited to drawing hex ownership and hex libvars.