Move window function dialog to preferences, update documentation and
tweak UI