It would be best if you follow this guide for UI setup.
For window size and position, you want to look at the dimension configuration parameter for such.
Ok thanks