In SDL2 there is a function

SDL_Window* SDL_CreateWindow(const char* title, int x,
int y,
...