Currently, we are not sure to understand what you want to achieve. 1-Do you can to hide and clear the panel once the recogntion result has been gotten, and re-open it after? 2-You want to hide the panel, and re-open it later keeping the context?
1-You can export the result (Text, Latex, MathML) to your application, and then later clear the context and hide the panel.
2-In that case, you can reduce the size of the writing panel to one pixel, so you no longer see it. To re-open the context, set it to the previous size.