Merge changes I34ed5f0f,I9538646f into main

* changes:
  [23/n Dispatcher refactor] Add const ref to window and connection
  Move utility functions related to isFromSource to Input.h