Window.SetPosition - screenshakes/Desktopia GitHub Wiki

Sets the position of the window, in pixel.

public void SetPosition(int x, int y)
{
    MoveWindow(
        Handle,
        x,
        y,
        (int) Rect.width,
        (int) Rect.height,
        true
    );

    Rect.Set(x, y, Rect.width, Rect.height);
}
public void SetPosition(Vector2 position)
{
    SetPosition((int) position.x, (int) position.y);
}