Pickblock (middle click) can be used to select a block, item or spawn egg. This function doesn't work correctly for Shulkers.
Middle Click to Pick Block Doesn't Work in Survival
Can't get zombie spawn egg when middle clicking (pick block) a zombie villager
Can't get Elder Guardian spawn egg when middle clicking (pick block)