private static void ShowWindow()
{
Resolution currentResolution = Screen.currentResolution;
left = (currentResolution.width - width) / 2;
top = (currentResolution.height - height) / 2;
windowArea = new Rect((float) left, (float) top, (float) width, (float) height);
win = Window;
win.position = windowArea;
win.Show();
}