[TIMOB-9502] (3_1_X) Delay focus events till window is opened

Backport of PR #4705

Fixes [TIMOB-9502](https://jira.appcelerator.org/browse/TIMOB-9502)