code: private static VerticalDropLocation internalGetVerticalDropLocation(Element element,
          int offsetHeight, int clientY, double topBottomRatio) {
  
          // Event coordinates are relative to the viewport, element absolute
          // position is relative to the document. Make element position relative
          // to viewport by adjusting for viewport scrolling. See #6021
          int elementTop = element.getAbsoluteTop() - Window.getScrollTop();
          int fromTop = clientY - elementTop;
  
          float percentageFromTop = (fromTop / (float) offsetHeight);
          if (percentageFromTop < topBottomRatio) {
              return VerticalDropLocation.TOP;
          } else if (percentageFromTop > 1 - topBottomRatio) {
              return VerticalDropLocation.BOTTOM;
          } else {
              return VerticalDropLocation.MIDDLE;
          }
      }
docs: Matches the original getVerticalDropLocation(Element, int, int, double) method.<p>