Recalculating the entire GUI to arbitrary dimensions

When the window changes size, Defold recalculates the size and position of all GUI nodes.
Is it possible to call this recalculation from within the program? Is there a function that can to be called from the native extension?

For example, such recalculation can be found in the safearea extension for iOS if you select a special mode there.
Is there access to such a function without being linked to a platform?

No, there is currently no such API function. Why do you need it?