Create dialog window using CreateWindowEx16/W depending on template