Prevent pointer actions on an unmanaged window