I am not an SDL expert, but you might need to use a native window type (e.g., HWND for Windows) as requested by the eglCreateWindowSurface function.

In particular, to SDL, it might be possible to...