Replaced platform-specific code in window::draw with calls to platform-specific window::beginDrawing and window::finishDrawing methods.