Add basic abstraction for drawing in window