Is it true that all windows programs under Windows are created using the windowsAPI (or the lower technology under this technology system)?

  c++, question

Recently, I am learning windows programming, so I am curious whether all windows under Windows have handles and are controlled by windows API, even windows written in other programming languages.
For example, Swing of java, does the underlying implementation in windows use the corresponding windowsAPI to draw the interface and corresponding events?

As far as I know, GUI has two modes:

  1. winform
  2. WPF