windows: Build window from code instead of use UI file

Also split the options in three tabs
Also add option to center new windows
windows: Remove UI file