Example of adding new native API functions, and passing the native window pointer between Java and C++. The example illustrates the Java code dynamically adding a UI in response to a call from the native code, and the Java UI handlers call back to C++ to change the camera location.