A pivot or top hung roof window, said window comprising: a frame and a sash, said sash being pivotally connected to said frame and pivotally movable relative to the frame between a fully closed position, a nearly closed position where said sash is proximate to said frame, and open positions, a compressible seal being interposed between at least a portion of said sash and a portion of said frame, said compressible seal being at least partially compressed when said sash is in said fully closed position, a motorized electronically operated lock that comprises first and second cooperating lock parts (22,24) that can engage and disengage one another with the first or the second cooperating lock part (22,24) being attached to said frame and the other cooperating lock part (22,24) being attached to said sash, said first and second cooperating lock parts (22,24) being configured to engage one another when said sash arrives from an open position at said nearly closed position, and a first sensor or switch configured to detect that the first cooperating lock part and the second cooperating lock part have engaged, a signal from the first sensor or switch indicating to a controller that the first and second cooperating lock parts (22, 24) have engaged, and upon receipt of said signal the controller issuing a first signal to the first cooperating lock part to carry out a motorized movement that pulls said sash from said nearly closed position to said fully closed position, with a pulling force which is sufficiently large to compress said compressible seal,said motorized electronically operated lock being configured to actively move said sash from said fully closed position to said nearly closed position and to release said sash by disengaging said first and second lock parts (22,24) upon receipt of a control signal, said motorized electronically operated lock being operatively connected to a handle, said handle being provided for manual locking and unlocking of said sash and for manually moving said sash between said fully closed position and said open positions, for manually moving said sash between said nearly closed position and said open positions, and for manually moving said sash between said open positions. a frame and a sash, said sash being pivotally connected to said frame and pivotally movable relative to the frame between a fully closed position, a nearly closed position where said sash is proximate to said frame, and open positions, a compressible seal being interposed between at least a portion of said sash and a portion of said frame, said compressible seal being at least partially compressed when said sash is in said fully closed position, a motorized electronically operated lock that comprises first and second cooperating lock parts (22,24) that can engage and disengage one another with the first or the second cooperating lock part (22,24) being attached to said frame and the other cooperating lock part (22,24) being attached to said sash, said first and second cooperating lock parts (22,24) being configured to engage one another when said sash arrives from an open position at said nearly closed position, and a first sensor or switch configured to detect that the first cooperating lock part and the second cooperating lock part have engaged, a signal from the first sensor or switch indicating to a controller that the first and second cooperating lock parts (22, 24) have engaged, and upon receipt of said signal the controller issuing a first signal to the first cooperating lock part to carry out a motorized movement that pulls said sash from said nearly closed position to said fully closed position, with a pulling force which is sufficiently large to compress said compressible seal,said motorized electronically operated lock being configured to actively move said sash from said fully closed position to said nearly closed position and to release said sash by disengaging said first and second lock parts (22,24) upon receipt of a control signal, said motorized electronically operated lock being operatively connected to a handle, said handle being provided for manual locking and unlocking of said sash and for manually moving said sash between said fully closed position and said open positions, for manually moving said sash between said nearly closed position and said open positions, and for manually moving said sash between said open positions.