You can’t open desktop windows in an AUv3 plug-in - see this post:
As for the error shown in the console, this is unrelated but has been fixed on develop.
develop