Obtain the default window handle from process

Also added a property which indicates whether the handle of the
RenderTarget is still valid.