getCanvas() in PGL so libraries can access the native surface