Create surface in main thread.