Warn user before session expiration event.

It is described that a session is invalidated after all the UIs have been closed due to user inactivity. (https://vaadin.com/docs/v10/flow/advanced/tutorial-application-lifecycle.html#tutorial-flow-runtime-configuration). Is is possible to warn the user before the session would expire? Eg. show a dialog 30 seconds in advance which asks the user to do some action to extend his session.