I don't think low level system APIs when called from an App should be messing with UI components. Can you explain what is better about it?
I don't think it is the system level API, but rather the program receiving a notification that the copy paste didn't succeed where the program can then display an error/warning. At least from my understanding.