Calculate the total bounds including shadow.
Original rectangle
Shadow configuration
Rectangle including shadow area
Calculate the total bounds including shadow.