Create window from application
Accept pointer in memory function
Add application to draw points
Add refresh function