Add viewport event callbacks and destroy function.
Release 0.3.0.