Changed window render from JAVA2D to P2D, added method for drawing in another windows.