center_on_screen
window->MoveTo(center_on_screen(rect, window));
extern BPoint center_on_screen(BRect rect, BWindow *window = NULL);
MoveTo(center_on_screen(Bounds()));