Multiplatform rectangle drawing (Android, Linux)

Is Android Native capable of using single codebase to have very basic UI (drawing rectangles) on Android and Linux? And maybe iOS?

I found some Android specific examples, text only hello world for multiplatform ones and hopefully outdated claim “no true cross-platform Kotlin GUI” at Kotlin/Native: Naughty or Nice? — Cantina

I want to simply draw some rectangles, with program running on multiple platforms. Is it feasible? Are there some examples/docs about this?

(I will not post links about what I have looked and found due to spam filter restrictions)