You can use SDL_putenv function to force SDL to use an existing window instead of creating its own. Look for the SDL_WINDOWID flag.

JEDI-SDL package also comes with an example. It is located in the Demos/2D/SDLtests/testwin folder.