It's still generally a bad idea, it's much better to write an interface and then provide multiple implementations that take advantage of the native features of the OS.
I think we all remember the last that language that decided to be so portable they shipped their own reimplemented GUI toolkit with the standard library.
I think we all remember the last that language that decided to be so portable they shipped their own reimplemented GUI toolkit with the standard library.