Get a stack (preferably) of any material and place this material in any slot you wish. Next, on an empty slot, switch to the slot you put your materials in while holding your drop key on your keyboard without letting go. You'll notice that the item drop animation plays an the amount of the aforementioned material has decreased.
Able to reproduce in 1.15 pre-6 with very minimal consistency. 90% of the time it works as intended, the other 10% this bug happens.