A library for window abstraction and event logic