Disable autofocus in dialogs

[#44817219]

Also improve docs of the BasicDialog class.