patch 8.2.0834: :drop command in terminal popup causes problems

Problem:    :drop command in terminal popup causes problems.
Solution:   Check for using a popup window. (closes #6151)
diff --git a/src/testdir/test_popupwin.vim b/src/testdir/test_popupwin.vim
index 8c917bc..1e7d5ee 100644
--- a/src/testdir/test_popupwin.vim
+++ b/src/testdir/test_popupwin.vim
@@ -2445,6 +2445,9 @@
   call assert_fails('call feedkeys("gf", "xt")', 'E863:')
   call feedkeys("a\<C-U>", 'xt')
 
+  " Cannot escape from terminal window
+  call assert_fails('tab drop xxx', 'E863:')
+
   " Cannot open a second one.
   let termbuf2 = term_start(&shell, #{hidden: 1})
   call assert_fails('call popup_create(termbuf2, #{})', 'E861:')