Undeclared identifier: MessageBeep

I know that the compilation is working ... but the error is displayed in the Delphi 11.1 IDE code insight.

In attachement simple project contains code which is on the picture ... what should I do to get rid of this error?

Test.zip (1.6 MB)