Whole leaves will absorb quite a bit of your wort during boil, but it really depends on what you are brewing. Lower hopped beers (e.g. German and Belgian beers) = lower absorption, higher = higher absorption. If you are brewing a double IPA (or Imperial IPA), you may want to account for absorption by increasing your final expected quantity.
I've often taken the mindset that for every 5 gallons of homebrew I wish to finish with, I'll add 1 gallon, making a 5 gallon batch, 6 gallons in total. 10 gallon batches become 12 gallon batches. The amount of hops and trub you end up with after primary and secondary may vary, but if you top off your fermentation bucket/carboy with 5 gallons, you will inevitably end up with less than 5 to go into kegs/bottles because of trub and yeast.
While it's my personal rule of thumb, if I plan on using whole leaf hops, or a lot of hops... Or screw it, anything in general that's excessive in hops or ABV, and want 5 gallons total output from my brew, I'll brew 6 gallons. Frankly, if I wind up with too much, and have to bottle off a few extra beers, or fill my keg to the point of overflowing, what a shame!