Return whether this has at least [threshold] ratio of it's total area drawn inside the screen bounds.
private fun LayoutCoordinates.isVisible( visibleRect: Rect, @FloatRange(from = 0.0, to = 1.0) threshold: Float, ): Boolean { if (!isAttached) return false return boundsInWindow().toAndroidRect().getIntersectPercentage(size, visibleRect) >= threshold }