Creates a Canvas Resource from the given Frame.
The Resource, when used, will wait for the user to close the window before the use block returns. Call the close() method to programmatically close the window if that is desired.