The player cannot collect items in the hitbox of the EnderDragon.
How to reproduce
Use the following command (uses the bug reported in MC-90417):
/summon Boat ~ ~ ~ {Passengers:[{id:EnderDragon}]}
Drop an item near the EnderDragon
Try to collect the item
The item is not a ghost item, once the EnderDragon moved away the player is able to pick the item up.
Might be caused by server-side player movement caused by entity collisions.