Dialog windows tests

Return `false` early if dialog should not open.