According to https://developer.android.com/reference/android/view/ViewTreeObserver.OnPreDrawListener#onPreDraw(), the return value of onPreDraw has the following use:
Return true to proceed with the current drawing pass, or false to cancel.
View.doOnPreDraw currently always returns true. Please allow to control the return value, e.g. by providing an overload with the parameter action: (view: View) -> Boolean