code: public void removeWindow(View view) {
          mWindowsLock.writeLock().lock();
          try {
              mWindows.remove(view.getRootView());
          } finally {
              mWindowsLock.writeLock().unlock();
          }
          fireWindowsChangedEvent();
      }
docs: Invoke this method to unregister a view hierarchy.
  
  @param view A view that belongs to the view hierarchy/window to unregister
  
  @see #addWindow(View, String)