Items can be dropped if you click while hovering over recipe interface
To reproduce, simply open your inventory, open the recipe interface, and click an item to pick it up. Move your cursor over to the recipe interface and right-click (or left-click). The item will be dropped.
The expected behavior is that nothing would happen, because right/left-clicking in similar areas inside the normal part of the GUI do not drop the item.