Platform.canHaveGui, can be used to tell whether we are able to create a GUI. Async modified to use platform.haveGui instead of performing its own test.